#ifndef UI_LOG_H
#define UI_LOG_H

#include <stdio.h>
#include <stdarg.h>

#define DEBUG 1

// #define DEBUG_LOG(format, ...)
//     printf("[DEBUG] File: %s, Function: %s, Line: %d | " format "\n", 
//            __FILE__, __func__, __LINE__, ##__VA_ARGS__, "")
void debug_log(const char *file, const char *func, int line, const char *format, ...);

#ifdef DEBUG
#define DEBUG_LOG(format, ...) \
    debug_log(__FILE__, __func__, __LINE__, format, ##__VA_ARGS__)
#else
#define DEBUG_LOG(format, ...) ((void)0)
#endif

#endif